package com.polytest;

public interface CompareAble {
    //定义默认比较方法,挑选打印较大苹果
    public default Apple compareTo(Apple s1, Apple s2){
        if (s1.getSize() > s2.getSize()){
            return s1;
        }
        return s2;
    }
}
